add function for obtaining highest possible memory address
authorJuergen Gross <jgross@suse.com>
Thu, 28 Sep 2017 09:05:37 +0000 (11:05 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 28 Sep 2017 09:05:37 +0000 (11:05 +0200)
commit99aa29574288d38ff7a4e9f9889fa7133e9910cd
tree6b8eb7cabec51441cb7706759bf663981f0307e7
parentf122fc2e3520e7af45d3bae9606ce5b8ac5ef887
add function for obtaining highest possible memory address

Add a function for obtaining the highest possible physical memory
address of the system. This value is influenced by:

- hypervisor configuration (CONFIG_BIGMEM)
- processor capability (max. addressable physical memory)
- memory map at boot time
- memory hotplug capability

Add this value to xen_sysctl_physinfo in order to enable dom0 to do a
proper sizing of grant frame limits of guests.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Julien Grall <julien.grall@arm.com>
xen/arch/arm/mm.c
xen/arch/x86/mm.c
xen/common/sysctl.c
xen/include/public/sysctl.h
xen/include/xen/mm.h